package  
{
	import flash.display.Sprite;
	import flash.events.Event;
	import model.MGameboard;
	import view.VGameboard;

	/**
	 * @author vkozhaev
	 */
	public class Main1 extends Sprite
	{
		var gameboard:MGameboard;
		
		public function Main1() 
		{
			this.addEventListener(Event.ENTER_FRAME, onFirstEnterframe);
			
		}
		
		private function onFirstEnterframe(e:Event):void {
			this.removeEventListener(Event.ENTER_FRAME, onFirstEnterframe);
			gameboard = new MGameboard();
			
			(this["game"] as VGameboard).model = gameboard;
			gameboard.startTimer();
		}
		
	}

}